package com.wyh.mapper.groupOne.customer;


import com.wyh.domain.vo.groupOne.customer.CustomerAccuratelyVO;
import com.wyh.domain.vo.groupOne.customer.MasterDataCustomerVO;
import com.wyh.domain.vo.groupOne.customer.MasterDataProjectVO_1;

import java.util.List;


public interface MasterDataCCustomerMapper {
    /**
     * 查询所有客户
     *
     * @param customer
     * @return
     */
    List<MasterDataCustomerVO> selectAll(MasterDataCustomerVO customer);

    /**
     * 精准查询
     *
     * @param
     * @return
     */
    List<MasterDataCustomerVO> selectAccurately(CustomerAccuratelyVO customerVO);

    /**
     * 添加客户
     *
     * @param customer
     * @return
     */
    int insert(MasterDataCustomerVO customer);


    /**
     * 根据客户姓名查询
     *
     * @param name
     * @return
     */
    List<MasterDataCustomerVO> selectByName(String name);


    /**
     * 根据社会信用码查询 或 个人证件号码查询
     *
     * @param creditcode
     * @return
     */
    List<MasterDataCustomerVO> selectByCreditcode(String creditcode);


    /**
     * 查询详情--基础信息
     */
    MasterDataCustomerVO selectDetailBasic(Integer id);


    /**
     * 修改客户信息
     *
     * @param customer
     * @return
     */
    int update(MasterDataCustomerVO customer);


    /**
     * 修改客户状态
     */
    int updateState(MasterDataCustomerVO masterDataCustomerVO);

    /**
     * 根据客户手机号查询
     * @param telephone
     * @return
     */
   List<MasterDataCustomerVO> selectByTelephone(String telephone);


    /**
     * 查询所有楼盘名称
     * @return
     */
    List<MasterDataProjectVO_1> selectAllName();


}
